    <div class="tabs-container">
        <ul class="nav nav-tabs">
            <li  class="{{ Active::query('status','') }}"><a href="{{route('admin.activity.banner.index')}}" no-pjax> 所有banner图
                    <span class="badge"></span></a></li>
            {{--<li  class="{{ Active::query('status','nstart') }}"><a href="{{route('admin.promotion.discount.index',['status'=>'nstart'])}}" no-pjax> 未开始
                    <span class="badge"></span></a></li>
            <li  class="{{ Active::query('status','ing') }}"><a href="{{route('admin.promotion.discount.index',['status'=>'ing'])}}" no-pjax> 进行中
                    <span class="badge"></span></a></li>
            <li  class="{{ Active::query('status','end') }}"><a href="{{route('admin.promotion.discount.index',['status'=>'end'])}}" no-pjax> 已结束
                    <span class="badge"></span></a></li>--}}
        </ul>
        <div class="tab-content">
            <div id="tab-1" class="tab-pane active">
                {!! Form::open( [ 'route' => ['admin.activity.banner.index'], 'method' => 'get', 'id' => 'discount-form','class'=>'form-horizontal'] ) !!}
                 <div class="panel-body">
                    <div class="row">
                        <div class="col-md-3">
                            <a class="btn btn-primary " href="{{ route('admin.activity.banner.create') }}" no-pjax>添加banner图片</a>
                        </div>

                        <div class="col-md-6">
                            <div class="col-md-4">
                                <select class="form-control" name="status">
                                    <option value="" {{request('status')==''?'selected':''}}>显示状态</option>
                                    <option value="1" {{request('status')==1?'selected':''}} >已显示</option>
                                    <option value="2" {{request('status')==2?'selected':''}} >未显示</option>
                                </select>
                            </div>
                            <div class="input-group">
                                 <span class="input-group-btn"><button type="submit" class="btn btn-primary">查找</button></span></div>
                        </div>
                    </div>

                    {!! Form::close() !!}

                     <div class="hr-line-dashed"></div>

                    <div class="table-responsive">
                        @if(count($discount)>0)
                            <table class="table table-hover table-striped">
                                <tbody>
                                <!--tr-th start-->
                                <tr>
                                    <th>序号</th>
                                    <th>banner</th>
                                    <th>banner链接</th>
                                    <th>排序</th>
                                    <th>状态</th>
                                    <th>创建时间</th>
                                    <th>操作</th>
                                </tr>
                                <!--tr-th end-->
                                @foreach ($discount as $item)
                                    <tr>
                                        <td>{{$item->id}}</td>
                                        <td><img src="{{$item->banner_url}}" style="height: 100px;width: 200px"></td>
                                        <td>{{$item->link_url}}</td>
                                        <td>{{$item->sort}}</td>
                                        <td>{{$item->is_valid==1?'显示':"不显示"}}</td>
                                        <td>{{$item->created_at}}</td>
                                        <td>
                                            <a class="btn btn-xs btn-primary" href="{{route('admin.activity.banner.edit',['id'=>$item->id])}}" no-pjax>
                                                <i data-toggle="tooltip" data-placement="top"
                                                   class="fa fa-pencil-square-o"
                                                   title="编辑"></i></a>
                                            {{--<a href="javascript:" class="btn btn-xs btn-danger close-order"
                                               data-url="{{route('admin.orders.close',['id'=>$item->id])}}"><i
                                                        class="fa fa-times" data-toggle="tooltip" data-placement="top" title=""
                                                        data-original-title="关闭订单"></i></a>--}}
                                        </td>
                                    </tr>
                                @endforeach

                                </tbody>
                                <tfoot>
                                <tr>
                                    <td colspan="6" class="footable-visible">
                                        {!! $discount->render() !!}
                                    </td>
                                </tr>
                                </tfoot>
                            </table>
                        @else
                            <div>
                                &nbsp;&nbsp;&nbsp;当前无数据
                            </div>
                        @endif
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="modal" class="modal inmodal fade"></div>